home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{30079C83-7468-11D3-9D68-E69F60B76447}#8.0#0"; "TGPB.ocx"
- Begin VB.Form TGPB
- BorderStyle = 4 'Fixed ToolWindow
- Caption = " Demostration of Tmax Gradiant Progress Bar"
- ClientHeight = 3390
- ClientLeft = 45
- ClientTop = 285
- ClientWidth = 5055
- ClipControls = 0 'False
- ControlBox = 0 'False
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3390
- ScaleWidth = 5055
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton cmdExit
- Caption = "E&xit"
- Height = 375
- Left = 2400
- TabIndex = 8
- Top = 1200
- Width = 2535
- End
- Begin TPB.TGPB TGPB2
- Height = 495
- Left = 2400
- TabIndex = 7
- Top = 480
- Width = 615
- _ExtentX = 1085
- _ExtentY = 873
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 65280
- BorderStyle = 0
- Display = 0 'False
- Orientation = 0 'False
- End
- Begin VB.TextBox txtFont
- Appearance = 0 'Flat
- BorderStyle = 0 'None
- Height = 975
- Left = 2280
- MultiLine = -1 'True
- TabIndex = 3
- Text = "FrmTGPB.frx":0000
- Top = 120
- Width = 2655
- End
- Begin VB.CommandButton cmdLoad
- Caption = "&Load"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 1200
- Width = 2055
- End
- Begin VB.ComboBox cboFont
- Height = 315
- Left = 120
- Sorted = -1 'True
- TabIndex = 1
- Top = 120
- Width = 2055
- End
- Begin TPB.TGPB TGPB1
- Height = 495
- Left = 120
- TabIndex = 0
- Top = 600
- Width = 2055
- _ExtentX = 3625
- _ExtentY = 873
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 65535
- End
- Begin TPB.TGPB TGPB
- Height = 495
- Index = 2
- Left = 0
- TabIndex = 6
- Top = 1800
- Width = 5055
- _ExtentX = 8916
- _ExtentY = 873
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 16711935
- BorderStyle = 0
- Display = 0 'False
- Orientation = 0 'False
- End
- Begin TPB.TGPB TGPB
- Height = 2175
- Index = 0
- Left = 0
- TabIndex = 4
- Top = 0
- Width = 5055
- _ExtentX = 8916
- _ExtentY = 3836
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 255
- BorderStyle = 0
- Display = 0 'False
- End
- Begin TPB.TGPB TGPB
- Height = 1335
- Index = 1
- Left = 0
- TabIndex = 5
- Top = 2160
- Width = 5055
- _ExtentX = 8916
- _ExtentY = 2355
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = 33023
- BorderStyle = 0
- Display = 0 'False
- Orientation = 0 'False
- End
- Attribute VB_Name = "TGPB"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cboFont_Change()
- txtFont.FontName = cboFont.List(cboFont.ListIndex)
- End Sub
- Private Sub cboFont_Scroll()
- txtFont.FontName = cboFont.List(cboFont.ListIndex)
- End Sub
- Private Sub cmdExit_Click()
- End Sub
- Private Sub cmdLoad_Click()
- Dim i%, fc%
- fc% = Screen.FontCount
- cboFont.Clear
- TGPB1.Cls
- For i% = 0 To fc% - 1
- cboFont.AddItem Screen.Fonts(i%)
- TGPB1.ShowProgress i% / fc% * 100
- Next i%
- cboFont.ListIndex = 0
- txtFont.FontSize = 12
- End Sub
- Private Sub Form_Load()
- TGPB(0).ShowProgress 100
- TGPB(1).ShowProgress 100
- TGPB(2).ShowProgress 100
- TGPB2.ShowProgress 100
- End Sub
-